<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>3d穿透</title>
	<style>
		.D1{
			width: 500px;
			height: 500px;
			background-color: red;
			transition: all 1s; 
			transform: rotateY(50deg);
			transform-style: preserve-3d;
		}
		.D1:hover .d1{
			transform: rotateX(50deg);
		}
		.d1{
			width: 300px;
			height: 300px;
			margin:0 auto;
			transition: all 1s; 
			transform: rotateX(-50deg);
			background-color: blue;
		}
	</style>
</head>
<body>
	<div class="D1">
		<div class="d1"></div>
	</div>
</body>
</html>